package com.sojson.base.impl;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 排序字段Bean
 * 
 * @author liu
 * @date 2021-03-16
 */
@ApiModel("排序字段Bean")
public class OrderItem {

    @ApiModelProperty("字段编号")
    private int column;
    @ApiModelProperty("升序还是降序(默认升序)")
    private boolean asc = true;

    /**
     * 获取字段编号
     * 
     * @return 字段编号
     */
    public int getColumn() {
        return column;
    }

    /**
     * 设置字段编号
     * 
     * @param column 字段编号
     */
    public void setColumn(int column) {
        this.column = column;
    }

    /**
     * 获取升序还是降序(默认升序)
     * 
     * @return 升序还是降序(默认升序)
     */
    public boolean getAsc() {
        return asc;
    }

    /**
     * 设置升序还是降序(默认升序)
     * 
     * @param asc true: 升序,false: 降序
     */
    public void setAsc(boolean asc) {
        this.asc = asc;
    }

}